import type { RouteRecordRaw } from "vue-router";

function Layout() {
  return import("@/layouts/index.vue");
}

const routes: RouteRecordRaw = {
  path: "/fundsTransfer",
  component: Layout,
  redirect: "/fundsTransfer/log",
  name: "fundsTransfer",
  meta: {
    title: "资金划转",
    icon: "iconfont icon-fundsTransfer",
  },
  children: [
    {
      path: "log",
      name: "log",
      component: () => import("@/views/fundsTransfer/log/index.vue"),
      meta: {
        title: "资金划转记录",
      },
    },
    {
      path: "config",
      name: "config",
      component: () => import("@/views/fundsTransfer/config/index.vue"),
      meta: {
        title: "资金划转配置",
      },
    },
  ],
};

export default routes;
